﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Responsibility.Handle
{
    /// <summary>
    /// 第一环节
    /// </summary>
    public class FirstHandle : BaseHandle
    {

        public FirstHandle()
        {

        }

        public override void Excuted(int i)
        {
            if (i<5)
            {
                Console.WriteLine("传入值{0}，first处理成功", i);
            }
            else
            {
                Console.WriteLine("first处理失败，转入下个流程", i);
                this._baseHandle.Excuted(i);
            }
          
        }
     
    }
}
